const path = require('path');
const webpack = require('webpack');
module.exports = {
    context: path.resolve(__dirname, 'src'),
    entry: {
        app: './index.js',
    },
    devServer: {
        contentBase: 'dist',
        compress:true,
        port:8080,
        https:false,
        host:'0.0.0.0',
        writeToDisk:true,
    },
    output: {
        path: path.resolve(__dirname, 'dist'),
        filename: '[name].js',
    },
    optimization:{
        // chunkIds:'named',
        // minimize:false
    }
};